package cn.iocoder.yudao.module.bill.controller.admin.bill_cate.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;
import java.util.*;
import org.springframework.format.annotation.DateTimeFormat;
import java.time.LocalDateTime;
import com.alibaba.excel.annotation.*;
import cn.iocoder.yudao.framework.excel.core.annotations.DictFormat;
import cn.iocoder.yudao.framework.excel.core.convert.DictConvert;

@Schema(description = "管理后台 - 账单分类 Response VO")
@Data
@ExcelIgnoreUnannotated
public class BillCateRespVO {

    @Schema(description = "ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "9425")
    @ExcelProperty("ID")
    private Long id;

    @Schema(description = "分类", requiredMode = Schema.RequiredMode.REQUIRED, example = "李四")
    @ExcelProperty("分类")
    private String clsName;

    @Schema(description = "收支类型", requiredMode = Schema.RequiredMode.REQUIRED, example = "2")
    @ExcelProperty(value = "收支类型", converter = DictConvert.class)
    @DictFormat("bill_amount_type") // TODO 代码优化：建议设置到对应的 DictTypeConstants 枚举类中
    private String amountType;

    @Schema(description = "父ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "22994")
    @ExcelProperty("父ID")
    private Long parentId;

    @Schema(description = "排序号", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("排序号")
    private Long orderNum;

    @Schema(description = "批注", example = "你猜")
    @ExcelProperty("批注")
    private String remark;

    @Schema(description = "创建时间", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("创建时间")
    private LocalDateTime createTime;

}